rz_il_sources = [
   'definitions/bool.c',
   'definitions/float.c',
   'definitions/label.c',
   'definitions/mem.c',
   'definitions/value.c',
   'definitions/variable.c',
   'theory_bitv.c',
   'theory_bool.c',
   'theory_effect.c',
   'theory_fbasic.c',
   'theory_init.c',
   'theory_mem.c',
   'il_events.c',
   'il_export_string.c',
   'il_export_json.c',
   'il_graph.c',
   'il_opcodes.c',
   'il_routines.c',
   'il_reg.c',
   'il_validate.c',
   'il_vm.c',
   'il_vm_eval.c',
]

rz_il_inc = [
  platform_inc,
]

rz_il = library('rz_il', rz_il_sources,
  include_directories: rz_il_inc,
  dependencies: [
    rz_util_dep,
    rz_reg_dep
  ],
  install: true,
  implicit_include_directories: false,
  install_rpath: rpath_lib,
  soversion: rizin_libversion,
  version: rizin_version,
  name_suffix: lib_name_suffix,
  name_prefix: lib_name_prefix,
)

rz_il_dep = declare_dependency(link_with: rz_il,
                                include_directories: rz_il_inc)
meson.override_dependency('rz_il', rz_il_dep)

modules += { 'rz_il': {
    'target': rz_il,
    'dependencies': ['rz_util', 'rz_reg']
}}
